/*
 * @Author: guo wei
 * @LastEditors: [guo wei]
 * @LastEditTime: 2024-03-12 15:31:40
 * @Description:
 */
import request from "@/utils/request";

// 查询定时任务调度列表
export function getInfoSysSelectData(query) {
  return request({
    url: "/getSelectData",
    method: "get",
    params: query,
  });
}
export function getColorInfoSelectData(query) {
  return request({
    url: "/colorInfos",
    method: "get",
    params: query,
  });
}
export function getPublicFileUrl(query) {
  return request({
    url: "/getPublicFileUrl",
    method: "get",
    params: query,
  });
}
export function getGradeInfoSelectData(query) {
  return request({
    url: "/gradeInfos",
    method: "get",
    params: query,
  });
}
export function addModelInfoData(data) {
  return request({
    url: "/modelInfo",
    method: "post",
    data,
  });
}
export function modifyModelInfoData(data) {
  return request({
    url: "/modelInfo",
    method: "put",
    data,
  });
}
export function getModelInfoDetailData(modelInfoId) {
  return request({
    url: `/modelInfo/${modelInfoId}`,
    method: "get",
  });
}
export function getModelListData(params) {
  return request({
    url: "/modelInfos",
    method: "get",
    params,
  });
}
export function getPptInfos(params) {
  return request({
    url: "/pptInfos",
    method: "get",
    params,
  });
}
export function getPptInfoDetail(modelInfoId ) {
  return request({
    url: `/pptInfo/${modelInfoId}`,
    method: "get",
  });
}
export function addPptInfoDetail(data) {
  return request({
    url: "/pptInfo",
    method: "post",
    data,
  });
}
export function modifyPptInfoDetail(data) {
  return request({
    url: "/pptInfo",
    method: "put",
    data,
  });
}
export function getPartListData(params) {
  return request({
    url: "/allUsedPartInfo",
    method: "get",
    params,
  });
}
export function getMaterialInfo(params) {
  return request({
    url: "/materialInfo/selectList",
    method: "get",
    params,
  });
}
export function getFacadeMaterialsMatch(params) {
  return request({
    url: "/facadeMaterialsMatch",
    method: "get",
    params,
  });
}
export function getMaterialDetailInfo(params) {
  return request({
    url: "/materialIntelligentMatch",
    method: "get",
    params,
  });
}
export function getUsedPartInfos(query) {
  return request({
    url: '/usedPartInfos',
    method: 'get',
    params: query
  })
}
export function getMaterialInfos(query) {
  return request({
    url: '/materialInfos',
    method: 'get',
    params: query
  })
}
export function getCommodityIntelligentMatch(query) {
  return request({
    url: '/commodityIntelligentMatch',
    method: 'get',
    params: query
  })
}
export function getCommodityIntelligentList(query) {
  return request({
    url: '/commodityInfos',
    method: 'get',
    params: query
  })
}
